package com.project.bookstore.order.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@Accessors(chain = true)
public class OrderDetailVO implements Serializable {
    @ApiModelProperty("订单ID")
    private Long id;
    @ApiModelProperty("订单号")
    private String orderNumber;
    @ApiModelProperty("订单状态")
    private Integer state;
    @ApiModelProperty("发货单号")
    private String expressOrder;
    @ApiModelProperty("备注")
    private String remarks;
    @ApiModelProperty("订单创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", shape = JsonFormat.Shape.STRING)
    private LocalDateTime created;

    @ApiModelProperty("书籍列表数据")
    private List<BookInCreateOrderVO> books;

    @ApiModelProperty("地址")
    private String address;
    @ApiModelProperty("收货人")
    private String receiver;
    @ApiModelProperty("电话")
    private String phone;
}
